package com.sport.service;

import com.sport.bean.Admin;
import com.sport.bean.PageParam;
import com.sport.bean.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 学生业务层接口
 */
public interface TeacherService {

        //查找所有学生
    List<Teacher> findAll();

    //根据裁判名字查找
    Teacher findByName(String name);

    //更新裁判
    int updateTea( Teacher teacher);
    //添加裁判
    int addTeacher(Teacher teacher);
    //删除裁判

    int deletTeacher(Integer id);

    //分页
    List<Teacher> listPage(PageParam<Teacher> pageParam);

    //根据ID查找d
    Teacher findById(Integer id);
}


